home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 March / CMCD0305.ISO / Software / Shareware / Comunicatii / TrafMeter5 / TrafMeter56.exe / {app} / XSLExamples / traffic2.xsl < prev   
Extensible Markup Language  |  2003-10-01  |  888b  |  37 lines

  1. <?xml version="1.0" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:template match="/">
  4. <H3>Your company name - Daily traffic report</H3>
  5. <table cellpadding="5" border="1" cellspacing="0" STYLE="font-family: verdana; font-size:12">
  6. <tr>
  7.  <td><B>Id</B></td>
  8.  <td><B>Filter Name</B></td>
  9.  <td><B>Sent bytes</B></td>
  10.  <td><B>Recv bytes</B></td>
  11. </tr>
  12. <xsl:for-each select="TrafficReport/Filter">
  13.  <tr>
  14.  <td>
  15.   <xsl:value-of select="@Id"/>
  16.  </td>
  17.  <td>
  18.  <xsl:value-of select="Name"/>
  19.  </td>
  20.  <td>
  21.  <xsl:value-of select="format-number(Sent div 1048576, '0.00')"/> Mb
  22.  </td>
  23.  <td>
  24.  <xsl:value-of select="format-number(Recv div 1048576, '0.00')"/> Mb
  25.  </td>
  26.  </tr>
  27. </xsl:for-each>
  28. </table>
  29. <p><br>
  30. <i>Last Modified:
  31. <xsl:value-of select="TrafficReport/LastModified"/>
  32. </i></br></p>
  33. </xsl:template>
  34. </xsl:stylesheet>
  35.  
  36.  
  37.